Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a bit faster comparison in 'file_types_order' rule #2949

Merged
merged 2 commits into from
Nov 8, 2019

Conversation

PaulTaykalo
Copy link
Collaborator

@PaulTaykalo PaulTaykalo commented Nov 7, 2019

In order to check whether the main structure is not of the substructures in the file, we don't need to make a deep diff. Instead, simple offset checking can be enough.

@SwiftLintBot
Copy link

SwiftLintBot commented Nov 8, 2019

12 Messages
📖 Linting Aerial with this PR took 1.42s vs 1.48s on master (4% faster)
📖 Linting Alamofire with this PR took 2.74s vs 2.77s on master (1% faster)
📖 Linting Firefox with this PR took 8.18s vs 8.25s on master (0% faster)
📖 Linting Kickstarter with this PR took 16.35s vs 16.89s on master (3% faster)
📖 Linting Moya with this PR took 1.59s vs 1.61s on master (1% faster)
📖 Linting Nimble with this PR took 1.5s vs 1.54s on master (2% faster)
📖 Linting Quick with this PR took 0.56s vs 0.56s on master (0% slower)
📖 Linting Realm with this PR took 2.41s vs 2.46s on master (2% faster)
📖 Linting SourceKitten with this PR took 1.0s vs 1.0s on master (0% slower)
📖 Linting Sourcery with this PR took 3.13s vs 3.31s on master (5% faster)
📖 Linting Swift with this PR took 12.98s vs 13.11s on master (0% faster)
📖 Linting WordPress with this PR took 17.83s vs 18.13s on master (1% faster)

Generated by 🚫 Danger

@PaulTaykalo PaulTaykalo merged commit e6af334 into master Nov 8, 2019
@PaulTaykalo PaulTaykalo deleted the speedup/file-type-order-rule branch November 8, 2019 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants